<?php
	require "conn.php";
	if(isset($_POST['name'])){
		$username=$_POST['name'];
	}else{
		exit('非法操作');
	}
	$query="SELECT * FROM login WHERE username=$username";
	$result=mysql_query($query);
	
	if(mysql_fetch_array($result)){
		echo true;
	}else{
		echo false;
	}
?>